home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2151 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.3 KB  |  37 lines

  1. Path: news2.acs.oakland.edu!news
  2. From: bradw@exptech.com (Brad Wilson)
  3. Newsgroups: comp.os.ms-windows.programmer.win32,comp.lang.c++
  4. Subject: Re: Sockets don't work under VC++ 4.0 ?!!
  5. Date: Tue, 16 Jan 1996 01:22:34 GMT
  6. Organization: Express Technologies Corp.
  7. Message-ID: <4deur0$6s2@news2.acs.oakland.edu>
  8. References: <30F8A8B9.279B@metronet.com>
  9. NNTP-Posting-Host: ppp-pm01-dy-6.opr.oakland.edu
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. Gavin Williams <gavin@metronet.com> wrote:
  13.  
  14. >> I finally got around to doing a little Windows Sockets programming in VC++ 
  15. >> 4.0 today and was quickly greeted with an ugly problem--I can't get it to 
  16. >> create a socket.
  17.  
  18. >> The CSocket::Create() function consistently failed, and 
  19. >> CSocket::GetLastError() returned WSAEPROTOTYPE. I tried running the CHATTER 
  20. >> sample program, and its socket creation failed with the same error.
  21.  
  22. Do you have TCP/IP installed on the machine?
  23.  
  24. Brad
  25.  
  26. --
  27. class CBradWilson : public CWorldWatchProgrammingTeam {
  28.   public:
  29.     CString GetInetAddr()   { return CString("bradw@exptech.com");      }
  30.     CString GetPhone()      { return CString("+1 (810) 620-9803");      }
  31.     CString GetURL()        { return CString("http://www.exptech.com"); }
  32.     CString GetDisclaimer() { return CString("All I say is fact :-p");  }
  33. };
  34.  
  35. //  QOTW: "There is no right or wrong ... just popular opinion"
  36.  
  37.